﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="TanashCMS.Business"
    namespace="TanashCMS.Business">
	<class name="Product" table="Product" lazy="false">
		<id column="ID" name="ID">
			<generator class="identity" />
		</id>
		<property name="Title" column="Title" />
    <property name="ItemKey" column="ItemKey" />
		<property name="HTMLContent" column="HTMLContent" />
		<property name="SearchKeywords" column="SearchKeywords" />
		<property name="State" column="State" />
		<property name="UPC" column="UPC" />
		<property name="GUID" column="GUID" />
		<property name="Price" column="Price" />
		<property name="Discount" column="Discount" />
		<property name="WebsiteID" column="WebsiteID" />
		<property name="PhotoURL" column="PhotoURL" />
    <property name="OrderIndex" column="OrderIndex" />
    <property name="DateCreated" column="DateCreated"/>
    <property name="LastUpdated" column="LastUpdated" />
		<!--
		<many-to-one name="Website" class="TanashWebsite" column="WebsiteID" foreign-key="ID" insert="true" update="true" not-null="true" />
		-->

		<property name="CategoryID" column="CategoryID" />
		<!--
		<many-to-one name="Category" class="Category" column="CategoryID" foreign-key="ID" insert="true" update="true" outer-join="true" />
		<set name="Options" table="ProductOption" lazy="true" cascade="all">
			<key column="ProductID" />
			<one-to-many class="ProductOption" />
		</set>
		-->
	</class>
</hibernate-mapping>
